package com.test.dubbo.controller;

import com.test.dubbo.entity.User;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.test.dubbo.service.UserService;

/**
 * <一句话功能简述> <功能详细描述>
 *
 * @author lk
 * @version 2021/4/28
 * @see [相关类/方法]
 * @since [netty-dubbo]
 */
@Slf4j
@RestController
@RequestMapping ("/user")
public class UserController
{
	@Autowired
	private UserService userService;
	@GetMapping ("/userinfo/{id}")
	public String alipayAppPay(@PathVariable("id")Long id) {
		// RPC远程调用
		return userService.getUserNameById (id);
	}
}
